#手写一个简单的单例模式
class Cat:
    __instance = None
    def __new__(cls, *args, **kwargs):
        if not cls.__instance:
            cls.__instance = super().__new__(cls)
        return cls.__instanc

p1 = Cat()
print(p1)